package cn.cmeizu.spring6.validator.three;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

/**
 * @author cmeizu
 * @date 2023/2/19 19:14
 */
@Service
@Validated
public class MyService {

  public String testMethod(@NotNull @Valid User user) {
    return user.toString();
  }
}
